Before election (file) -> Boolean
                                                                                    Pg 40-11

file
   File     File for which to test if before selection

Before selection returns True when the current record pointer is before the first record in the selection of file. This can happen when the command PREVIOUS ECORD is called while the first record is current. Also returns True if the current selection of file is empty.

Before selection is commonly used to check whether PREVIOUS ECORD has moved the current record pointer before the first record.

Before selection also returns  rue in the first header when a report is being printed with PRINT ELECTION or from the Print menu. You can use the following statement to test for the first header, and print a special header for the first page:

       If (In header & Before selection)

The procedure in the following example is used during the printing of a report. It sets a variable, vTitle, to print in the Header area on the first page:

   If (In header & Before selection ([Finances]))     
                     `  If first page of a report, set title
     vTitle := "Corporate Report 1988"    ` Set the title for the first page
   Else
     vTitle :=""       ` Clear the title for all other pages
   End if

See also: In eader, PREVIOUS ECORD, PRINT ELECTION